import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import components from '@/components/index'
import * as filters from './filters'
import common from '@/utils/common';
import 'amfe-flexible'

import 'vant/lib/index.css';
import "@/assets/css/base.css"

Vue.config.productionTip = false

Vue.use(Vant);
Vue.use(components);

Object.assign(Vue.prototype, {
  common, // 公共方法 
  define: require('./utils/define'), // 常量
})

// 全局注册过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
